class PageList extends React.Component{
	render(){
		const pageList = [];
		for(let i=1;i<=this.props.pageSum;i++){
			pageList.push(<a onClick={()=>{
			   this.props.getWeibo(i);
			}} href="#" className={i===this.props.pageNo?"active":""}>{i}</a>)
		}
		return (
			<div className="page">
				{pageList}
			</div>
		)
	}
}